﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OwnerTransFer.aspx.cs" Inherits="WMS6.Web.Inventory.OwnerTransFer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>OwnerTransFer</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newTransfer()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "OwnerTransFer.aspx?from=" + escape(from);
            return false;
        }
        //弹出窗口选择货主
        function selectOwner(obj) {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=' + escape(obj), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {              
                document.getElementById(obj).value = rtnValue;
               // document.getElementById("txtOwnerID").focus();
            }
        }
        
        function confirmMsg(code)
        {
            if(code == "C010")
            {
                if(confirm('<%=GetGlobalMsgResource("C010") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            else if(code == "F5300_012")
            {
                if(confirm('<%=GetGlobalMsgResource("F5300_012") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
        	function SaveButton()
           {
            __doPostBack('<%=btnSave.ClientID.Replace('_','$')%>',''); 
            document.getElementById('btnSave').disabled='disabled';
           }
        
    </script>
</head>
<body>
    <form id="F5066" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <%--<asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>--%>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwnerTransFer" runat="server" 
                            CssClass="label_header" Text="货权转移" meta:resourcekey="lblOwnerTransFer"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"   
                            CausesValidation="False" onclick="btnGoBack_Click" Enabled="false"  /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"  
                            Enabled="false" 
                            OnClientClick="javascript:window.location.href='OwnerTransFer.aspx?from=list';return false;"  
                            AccessKey="n" /></td>
                              <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnDelete%>"  
                            AccessKey="d" 
                          OnClientClick="javascript:if(confirm('是否确认删除货权转移记录?'))return true; else return false;"
                            onclick="btnDelete_Click"  /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"  
                          AccessKey="e" onclick="btnCopy_Click" Enabled="false"  /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"  
                           OnClick="btnSave_Click" OnClientClick="SaveButton();" Enabled="false"   AccessKey="s"  /></td>
                              <td><asp:Button ID="btnAllocate" runat="server" CssClass="button" Text="分配" 
                            OnClick="btnAllocate_Click"  Enabled="false"   /></td>
                              <td><asp:Button ID="btnRevertAllocate" runat="server" CssClass="button" Text="取消分配" 
                            OnClick="btnRevertAllocate_Click"  Enabled="false"   /></td>
                    <td><asp:Button ID="btnConfirm" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnConfirm%>" 
                            OnClick="btnConfirm_Click"  Enabled="false"   /></td>
                </tr>
            </table>
        </div>
        
      
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            
            
             <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,3)" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">货权转移明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
            
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,3)" id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">货权分配明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3"></div>
            </div>
            
            
        </div>
        <div id="div_content">
             <div id="con_one_1" style="display: block;">
                 <table width="540px" style="display: block; margin-left: 10px; margin-top: 10px;" >
                     <tr>
                         <td width="180">
                             <asp:Label ID="lblTransferID" runat="server" CssClass="label" Text="库存转移单号" 
                                 meta:resourcekey="lblTransferID"></asp:Label>
                         </td>
                         <td width="180">
                              <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                  meta:resourcekey="lblStatus"></asp:Label></td>
                         <td width="180"></td>
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtTransferID" runat="server" CssClass="textbox" 
                                 Enabled="False" meta:resourcekey="txtTransferID" ></asp:TextBox>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                                    Enabled="False" meta:resourcekey="ddlStatus"></asp:DropDownList>                        
                         
                         </td>
                         <td>
                         </td>
                     </tr>       
                     
                      <tr>
                         <td width="180">
                             <asp:Label ID="lblFromOwnerID" runat="server" CssClass="label" Text="原货主代码" 
                                 meta:resourcekey="lblFromOwnerID"></asp:Label><font class="must_input">*</font>
                         </td>
                         <td width="180">
                         <asp:Label ID="lblToOwnerID" runat="server" CssClass="label" Text="至货主代码" 
                                 meta:resourcekey="lblToOwnerID"></asp:Label><font class="must_input">*</font>
                         </td>
                         <td width="180"></td>               
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtFromOwnerID" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtFromOwnerID" ></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner('txtFromOwnerID');" id="img1" runat="server" />
                         </td>
                         <td>
                             <asp:TextBox ID="txtToOwnerID" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtToOwnerID" ></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner('txtToOwnerID');" id="img2" runat="server" />
                         </td>
                         <td width="180"></td> 
                     </tr>   
                  
                       <tr>
                         <td width="180">
                             <asp:Label ID="lblTransferDate" runat="server" CssClass="label" Text="转移日期" 
                                 meta:resourcekey="lblTransferDate"></asp:Label><font class="must_input">*</font>
                         </td>
                        <td width="180">
                         <asp:Label ID="lblTransferType" runat="server" CssClass="label" Text="转移类型" 
                                meta:resourcekey="lblTransferType"></asp:Label>
                         </td>
                         <td width="180"></td> 
                     </tr>
                     <tr>
                         <td>
                             <asp:TextBox ID="txtTransferDate" runat="server" CssClass="textbox" 
                                 meta:resourcekey="txtTransferDate" ></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="imgTime" runat="server" onclick="setday(this,txtTransferDate)"/>
                         </td>
                         <td>
                             <asp:DropDownList ID="ddlTransferType" runat="server" 
                                 CssClass="mediumselectbox" meta:resourcekey="ddlTransferType"></asp:DropDownList>
                         </td>
                         <td width="180"></td> 
                     </tr>   
                     <tr style="height:10px;">
                         <td width="180"></td>
                         <td width="180"></td>
                         <td width="180"></td>
                     </tr>
                 </table>
             </div>
             
             <div id="con_one_2" style=" display:none; doverflow-x:auto; overflow-y:auto;">
                 <table width="1000px" style="display: block; margin-left: 10px; margin-top: 10px; height:100%;">
                     <tr>
                         <td>
                             <table>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAddDetail%>" 
                                                OnClientClick="javascript:if(document.getElementById('hdnTransferID').value == ''){if(confirm('货权转移主信息尚未保存,是否继续,继续则自动保存住信息.')) return true; else return false;}" 
                                                onclick="btnAddDetail_Click"  />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDeleteDetail%>"
                                                OnClientClick="javascript:if(confirmMsg('C010')) return true; else return false;" 
                                                onclick="btnDeleteDetail_Click"  />
                                        </td>
                                    </tr>
                                </table>
                         </td>
                     </tr>
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td >
                             <div>
                                 <asp:GridView ID="gvTransferDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False" 
                                     AllowPaging="True" OnPageIndexChanging="gvTransferDetail_SelectedIndexChanging" 
                                     CssClass="gridview" onrowdatabound="gvTransferDetail_RowDataBound" oninit="gvTransferDetail_Init" 
                                     DataKeyNames="TransferID,LineID,STATUS" Width="1000" 
                                     onsorting="gvTransferDetail_Sorting" 
                                     meta:resourcekey="gvTransferDetail" >
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                         <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="BoundField">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                            <asp:TemplateField meta:resourcekey="TemplateField" >
                                                <HeaderTemplate>
                                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('5066','gvTransferDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                    <asp:CheckBox ID="CheckBox1" runat="server"  
                                                        onclick="selectAll(this,'gvTransferDetail');" 
                                                        meta:resourcekey="CheckBox1"/> 
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chbSelect" runat="server" 
                                                        meta:resourcekey="chbSelect" />
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    <asp:CheckBox ID="CheckBox2" runat="server"   
                                                        onclick="selectAll(this,'gvTransferDetail');" 
                                                        meta:resourcekey="CheckBox2" /> 
                                                </FooterTemplate>
                                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                            </asp:TemplateField>  
                                         <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" 
                                             SortExpression="LineID" meta:resourcekey="BoundFieldResource2">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>  
                                         <asp:TemplateField HeaderText="明细" FooterText="明细" 
                                             meta:resourcekey="TemplateFieldResource2" >
                                            <ItemTemplate>
                                                <a href='<%# FormatTransferUrl("OwnerTransFerDetail.aspx?from=list&ID={0}&SeqNO={1}&type=Edit&FOwnerID={2}&TOwnerID={3}",Eval("TransferID").ToString(),Eval("LineID").ToString(),Eval("FromOwnerID").ToString(),Eval("ToOwnerID").ToString()) %>' target="_self"><img src="../Images/icon_edit.gif" class="img" style="border:none 0px blue;" alt="receipt"/></a>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center"/>
                                        </asp:TemplateField>    
                                         <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" 
                                             SortExpression="Status" meta:resourcekey="Status">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>  
                                         <asp:BoundField DataField="FromSkuID" HeaderText="原货品代码" FooterText="原货品代码" 
                                             SortExpression="FromSkuID" meta:resourcekey="FromSkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                        
                                         <asp:BoundField DataField="FromPackID" HeaderText="原包装代码" FooterText="原包装代码" 
                                             SortExpression="FromPackID" meta:resourcekey="FromPackID">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField>
                                          <asp:BoundField DataField="FromUomID" HeaderText="原计量单位" FooterText="原计量单位" 
                                             SortExpression="FromUomID" meta:resourcekey="FromUomID">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField> 
                                         <asp:BoundField DataField="ToSkuID" HeaderText="至货品代码" FooterText="至货品代码" 
                                             SortExpression="ToSkuID" meta:resourcekey="ToSkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>     
                                         <asp:BoundField DataField="ToPackID" HeaderText="至包装代码" FooterText="至包装代码" 
                                             SortExpression="ToPackID" meta:resourcekey="ToPackID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>  
                                         <asp:BoundField DataField="ToUomID" HeaderText="至计量单位" FooterText="至计量单位" 
                                             SortExpression="ToUomID" meta:resourcekey="ToUomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>  
                                         <asp:TemplateField FooterText="至数量" HeaderText="至数量" SortExpression="ToQty" 
                                             meta:resourcekey="ToQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblToQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("ToQty").ToString()) %>' 
                                                     meta:resourcekey="lblToQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>                                      
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                       <tr style="height: 30px;">
                         <td>
                         </td>
                         <td>
                         </td>
                       </tr>
                 </table>
             </div>
             
             <div id="con_one_3"  style=" display:none; doverflow-x:auto; overflow-y:auto;">
                 <table width="1000px" style="display: block; margin-left: 10px; margin-top: 10px; height:100%;">
                  
                     <tr style="height: 10px;">
                         <td>
                         </td>
                         <td>
                         </td>
                     </tr>
                     <tr>
                         <td >
                             <div>
                                 <asp:GridView ID="gvPickDetail" runat="server" AutoGenerateColumns="False"  AllowSorting="True"
                                     AllowPaging="True" CssClass="gridview" Width="1450px" oninit="gvPickDetail_Init"
                                     DataKeyNames="PickDetailID,Status" onrowdatabound="gvPickDetail_RowDataBound" 
                                    meta:resourcekey="gvPickDetail">
                                     <FooterStyle CssClass="GridViewFooterStyle" />
                                     <PagerStyle CssClass="GridViewPageStyle" />
                                     <RowStyle CssClass="GridViewRowStyle" />
                                     <HeaderStyle CssClass="GridViewHeaderStyle" />
                                     <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                     <Columns>
                                         <asp:BoundField HeaderText="序号" FooterText="序号" 
                                             meta:resourcekey="No">
                                             <ItemStyle CssClass="GridViewRowWidth_40" />
                                         </asp:BoundField>
                                         <asp:TemplateField meta:resourcekey="TemplateField2">
                                             <HeaderTemplate>
                                                <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('5066','gvPickDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                 <asp:CheckBox ID="CheckBox1" runat="server" 
                                                     onclick="selectAll(this,'gvPickDetail');" 
                                                     meta:resourcekey="CheckBox1Resource3" />
                                             </HeaderTemplate>
                                             <ItemTemplate>
                                                 <asp:CheckBox ID="chbSelect" runat="server" 
                                                     meta:resourcekey="chbSelectResource3" />
                                             </ItemTemplate>
                                             <FooterTemplate>
                                                 <asp:CheckBox ID="CheckBox2" runat="server" 
                                                     onclick="selectAll(this,'gvPickDetail');" 
                                                     meta:resourcekey="CheckBox2Resource3" />
                                             </FooterTemplate>
                                             <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                             <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                         </asp:TemplateField>
                                         <asp:BoundField DataField="OrderID" HeaderText="订单号" FooterText="订单号" 
                                             SortExpression="OrderID" meta:resourcekey="OrderID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="OrderLineId" HeaderText="行号" FooterText="行号" 
                                             SortExpression="OrderLineId" meta:resourcekey="OrderLineId">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="PickDetailID" HeaderText="拣货单号" FooterText="拣货单号" 
                                             SortExpression="PickDetailID" meta:resourcekey="PickDetailID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Lot" HeaderText="批号" FooterText="批号" 
                                             SortExpression="Lot" meta:resourcekey="Lot">
                                             <ItemStyle CssClass="GridViewRowWidth_150" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="Loc" HeaderText="来源货位" FooterText="来源货位" 
                                             SortExpression="Loc" meta:resourcekey="Loc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="ToLoc" HeaderText="目标货位" FooterText="目标货位" 
                                             SortExpression="ToLoc" meta:resourcekey="ToLoc">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="LpnID" HeaderText="LPN" FooterText="LPN" 
                                             SortExpression="LpnID" meta:resourcekey="LpnID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" 
                                             SortExpression="SkuID" meta:resourcekey="SkuID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                      
                                         <asp:TemplateField FooterText="分配数量" HeaderText="分配数量" SortExpression="AllocatedQty" 
                                             meta:resourcekey="AllocatedQty">
                                             <ItemTemplate>
                                                 <asp:Label ID="lblQty" runat="server" 
                                                     Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>' 
                                                     meta:resourcekey="lblQty"></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>   
                                         <asp:BoundField DataField="UomID" HeaderText="计量单位" FooterText="计量单位" 
                                             SortExpression="UomID" meta:resourcekey="UomID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="CaseID" HeaderText="箱号" FooterText="箱号" 
                                             SortExpression="CaseID" meta:resourcekey="CaseID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>
                                         <asp:BoundField DataField="DropID" HeaderText="落放代码" FooterText="落放代码" 
                                             SortExpression="DropID" meta:resourcekey="DropID">
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:BoundField>                                       
                                     </Columns>
                                 </asp:GridView>
                             </div>
                         </td>
                         <td>
                         </td>
                     </tr>
                       <tr style="height: 30px;">
                         <td>
                         </td>
                         <td>
                         </td>
                       </tr>
                 </table>
             </div>
         </div>
        <input type="hidden" id="hdnTransferID" runat="server" />
        <input type="hidden" id="hdnLineID" runat="server" />
        <input type="hidden" id="hdnFrom" runat="server" />
        <input type="hidden" id="hdnFlag" runat="server" />
        <input type="hidden" id="hidCheck" runat="server" />
        <input type="hidden" id="hdnDataFormat" runat="server" />
        <input type="hidden" id="hdncalendarFlag" runat="server" />
        <%--</ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnCopy" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnNew" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />  
        </Triggers>
        </asp:UpdatePanel>--%>
    </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>
